package com.jugheadzhou.emrpoc.common.exception;

import com.jugheadzhou.emrpoc.common.EmrResultCode;

/**
 * @author jugheadzhou
 * @date 2021-09-26
 */
public class EmrBusinessException extends RuntimeException {

    private EmrResultCode emrResultCode;

    public EmrResultCode getEmrResultCode() {
        return emrResultCode;
    }

    public EmrBusinessException(EmrResultCode emrResultCode) {
        super(emrResultCode.getMessage());
        this.emrResultCode = emrResultCode;
    }

}
